

import createSagaMiddleware from './redux-saga';
import {createStore, applyMiddleware} from 'redux';
import rootSaga from './all-sagas';
// import rootSaga from './sagas';
import reducer from './reducers';

let sagaMiddleware=createSagaMiddleware(); //返回一个中间件
let store=applyMiddleware(sagaMiddleware)(createStore)(reducer);
sagaMiddleware.run(rootSaga);

export default store;